<template>
  <div class="test-shell">
    <div class="test-box">
      <div class="test-msg">当前选中的：{{this.activeIndex}}</div>
      <div class="test-video-box">
        <div class="test-video-list"
             v-for="(item,index) of testVideo"
             :key="index">
          <span :class="item?'':'danger-color'">{{index}}：</span>
          <span :class="item?'':'danger-color'">{{item || ''}}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    activeIndex: {
      required: true,
      type: [Number, String]
    },
    testVideo: {
      required: true,
      type: Array
    }
  }
}
</script>

<style lang="scss" scoped>
.test-box {
  position: absolute;
  top: 15%;
  right: 2%;
  width: 30%;
  height: 60%;
  background-color: #3e3e3e;
  color: white;
  overflow: hidden;
  // overflow-y: auto;
  padding: 10px;
  text-align: left;
  border-radius: 4px;
  .test-video-box {
    overflow-y: auto;
    height: 90%;
    // padding-bottom: 30px;

    .test-video-list {
      display: flex;
      justify-content: space-between;
    }
  }
  .test-msg {
    padding: 10px;
    font-weight: bold;
  }
}
</style>
